package day7;

public class Animal1 {
    private void eat(){
        System.out.println("eat");
    }
    public void sheep(){
        System.out.println("sheep");
    }
    private void move(){
        System.out.println("move");
    }
}

class Rabbit1 extends Animal1{
    public void eat(){
        System.out.println("Reat");
    }
    public void move(){
        System.out.println("Rmove");
    }
}

class Tiger1 extends Animal1{
    public void eat(){
        System.out.println("Teat");
    }
    public void move(){
        System.out.println("Tmove");
    }
}

class Eagle1 extends Animal1{
    public void eat(){
        System.out.println("Eeat");
    }
    public void move(){
        System.out.println("Emove");
    }
}

class TestAnimal1{
    public static void main(String[] args) {
        Rabbit1 r = new Rabbit1();
        r.eat();
        r.sheep();
        r.move();
        Tiger1 t = new Tiger1();
        t.eat();
        t.move();
        t.sheep();
        Eagle1 e = new Eagle1();
        e.eat();
        e.move();
        e.sheep();
    }
}